package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 患者档案对象 userinfo
 * 
 * @author gzhuangwei
 * @date 2022-09-23
 */
public class Userinfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userid;

    /** 关联医生表doctorid */
    @Excel(name = "关联医生表doctorid")
    private String doctorid;

    /** 角色id关联sys_role的role_id(1为患者，2为医生) */
    @Excel(name = "角色id关联sys_role的role_id(1为患者，2为医生)")
    private String roleid;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String username;

    /** 微信头像 */
    @Excel(name = "微信头像")
    private String headimgurl;

    /** 微信昵称 */
    @Excel(name = "微信昵称")
    private String nickname;

    /** 所在地 */
    @Excel(name = "所在地")
    private String address;

    /** 当前位置 */
    @Excel(name = "当前位置")
    private String gps;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date born;

    /** 真实年龄 */
    @Excel(name = "真实年龄")
    private Long age;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date regdate;

    /** 用户身高 */
    @Excel(name = "用户身高")
    private String height;

    /** 用户体重 */
    @Excel(name = "用户体重")
    private String weight;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserid(String userid) 
    {
        this.userid = userid;
    }

    public String getUserid() 
    {
        return userid;
    }
    public void setDoctorid(String doctorid) 
    {
        this.doctorid = doctorid;
    }

    public String getDoctorid() 
    {
        return doctorid;
    }
    public void setRoleid(String roleid) 
    {
        this.roleid = roleid;
    }

    public String getRoleid() 
    {
        return roleid;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setHeadimgurl(String headimgurl) 
    {
        this.headimgurl = headimgurl;
    }

    public String getHeadimgurl() 
    {
        return headimgurl;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setGps(String gps) 
    {
        this.gps = gps;
    }

    public String getGps() 
    {
        return gps;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setBorn(Date born) 
    {
        this.born = born;
    }

    public Date getBorn() 
    {
        return born;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setRegdate(Date regdate) 
    {
        this.regdate = regdate;
    }

    public Date getRegdate() 
    {
        return regdate;
    }
    public void setHeight(String height) 
    {
        this.height = height;
    }

    public String getHeight() 
    {
        return height;
    }
    public void setWeight(String weight) 
    {
        this.weight = weight;
    }

    public String getWeight() 
    {
        return weight;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userid", getUserid())
            .append("doctorid", getDoctorid())
            .append("roleid", getRoleid())
            .append("username", getUsername())
            .append("headimgurl", getHeadimgurl())
            .append("nickname", getNickname())
            .append("address", getAddress())
            .append("gps", getGps())
            .append("mobile", getMobile())
            .append("born", getBorn())
            .append("age", getAge())
            .append("regdate", getRegdate())
            .append("height", getHeight())
            .append("weight", getWeight())
            .toString();
    }
}
